package com.wonder.enums;

public enum ManagementTypeEnum {
	//注册|0,实名|1,充值送|2,首充送|3,首次交易送|4,活动送|5,后台送|6,体验送|7,中奖送|8,签到送|9
	REGISTER(0, "注册"),
    CERTIFY(1, "实名"),
    RECHARGE(2, "充值送"),
    FIRST_RECHARGE(3, "首充送"),
    FIRST_TRADE(4, "首次交易送"),
    ACTIVITY(5, "活动送"),
    ADMIN(6, "后台送"),
    TEST(7, "体验送"),
    CHECKIN(9, "签到送"),
    BONUS(8, "中奖送");

    private int code;
    private String msg;

    ManagementTypeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static ManagementTypeEnum getByCode(int code) {
        for (ManagementTypeEnum gameType : values()) {
            if (gameType.code == code) {
                return gameType;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
